<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>错题收藏 - 学知题库</title>
    <link href="../assets/css/app.css" rel="stylesheet">
    <link href="../assets/css/font-awesome.min.css" rel="stylesheet">
    <script src="../assets/js/chart.umd.min.js"></script>
    
    <!-- Tailwind 配置 - 已合并到公共配置文件 -->
    <!-- 
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#165DFF',
                        secondary: '#36CBCB',
                        accent: '#FF7D00',
                        neutral: '#F5F7FA',
                        'neutral-dark': '#4E5969',
                        success: '#00B42A',
                        warning: '#FF7D00',
                        danger: '#F53F3F',
                    },
                    fontFamily: {
                        inter: ['Inter', 'system-ui', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    -->
    
    <!-- 工具类样式 - 已合并到 src/input.css -->
    <!-- 
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .scrollbar-hide {
                -ms-overflow-style: none;
                scrollbar-width: none;
            }
            .scrollbar-hide::-webkit-scrollbar {
                display: none;
            }
            .text-shadow {
                text-shadow: 0 2px 4px rgba(0,0,0,0.1);
            }
            .card-hover {
                transition: all 0.3s ease;
            }
            .card-hover:hover {
                transform: translateY(-5px);
                box-shadow: 0 10px 20px rgba(0,0,0,0.08);
            }
            .bg-gradient-primary {
                background: linear-gradient(135deg, #165DFF 0%, #0E42B3 100%);
            }
            .progress-ring-circle {
                transition: stroke-dashoffset 0.35s;
                transform: rotate(-90deg);
                transform-origin: 50% 50%;
            }
            .animate-float {
                animation: float 3s ease-in-out infinite;
            }
            @keyframes float {
                0% { transform: translateY(0px); }
                50% { transform: translateY(-10px); }
                100% { transform: translateY(0px); }
            }
        }
    </style>
    -->
</head>
<body class="bg-gray-50 font-inter text-gray-800 min-h-screen flex flex-col">
    <!-- 顶部导航栏 -->
    <header class="bg-white shadow-sm sticky top-0 z-50 transition-all duration-300">
        <div class="container mx-auto px-4 py-3 flex items-center justify-between">
            <div class="flex items-center space-x-2">
                <a href="#" class="flex items-center">
                    <i class="fa fa-graduation-cap text-primary text-2xl mr-2"></i>
                    <h1 class="text-xl font-bold text-gray-800">学知题库</h1>
                </a>
            </div>
            
            <div class="hidden md:flex items-center space-x-6">
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">首页</a>
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">题库</a>
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">学习路径</a>
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">模拟考试</a>
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">关于我们</a>
            </div>
            
            <div class="flex items-center space-x-4">
                <div class="flex items-center space-x-4">
                    <div class="relative">
                        <img src="https://picsum.photos/40/40?random=user" alt="用户头像" class="w-10 h-10 rounded-full border-2 border-primary">
                    </div>
                    <span class="hidden md:inline text-gray-700">张同学</span>
                </div>
            </div>
        </div>
    </header>

    <!-- 主内容区（错题收藏页面） -->
    <main class="flex-1 py-8 bg-gray-50">
        <div class="container mx-auto px-4">
            <!-- 页面标题与操作区 -->
            <div class="mb-8 flex flex-col md:flex-row md:items-center justify-between gap-4">
                <div>
                    <h2 class="text-2xl font-bold text-gray-800">错题收藏</h2>
                    <p class="text-gray-500 mt-1">集中攻克易错点，针对性提升薄弱环节</p>
                </div>
                <div class="flex flex-wrap gap-3">
                    <button class="px-4 py-2 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors flex items-center">
                        <i class="fa fa-refresh mr-2"></i>错题重练
                    </button>
                    <button class="px-4 py-2 bg-white border border-gray-200 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors flex items-center">
                        <i class="fa fa-download mr-2"></i>导出打印
                    </button>
                </div>
            </div>

            <!-- 错题统计概览 -->
            <div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8">
                <div class="bg-white rounded-xl shadow-sm p-6 card-hover">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="text-gray-600 font-medium">总错题数</h3>
                        <div class="w-10 h-10 rounded-full bg-danger/10 flex items-center justify-center">
                            <i class="fa fa-exclamation-circle text-danger"></i>
                        </div>
                    </div>
                    <div class="flex items-end gap-2">
                        <span class="text-3xl font-bold text-gray-800">42</span>
                        <span class="text-danger flex items-center text-sm mb-1">
                            <i class="fa fa-arrow-up mr-1"></i>5题
                        </span>
                    </div>
                    <p class="text-gray-500 text-sm mt-2">本周新增</p>
                </div>

                <div class="bg-white rounded-xl shadow-sm p-6 card-hover">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="text-gray-600 font-medium">已掌握</h3>
                        <div class="w-10 h-10 rounded-full bg-success/10 flex items-center justify-center">
                            <i class="fa fa-check text-success"></i>
                        </div>
                    </div>
                    <div class="flex items-end gap-2">
                        <span class="text-3xl font-bold text-gray-800">18</span>
                        <span class="text-success flex items-center text-sm mb-1">
                            <i class="fa fa-arrow-up mr-1"></i>8题
                        </span>
                    </div>
                    <p class="text-gray-500 text-sm mt-2">较上周提升</p>
                </div>

                <div class="bg-white rounded-xl shadow-sm p-6 card-hover">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="text-gray-600 font-medium">重练正确率</h3>
                        <div class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center">
                            <i class="fa fa-line-chart text-primary"></i>
                        </div>
                    </div>
                    <div class="flex items-end gap-2">
                        <span class="text-3xl font-bold text-gray-800">65%</span>
                        <span class="text-success flex items-center text-sm mb-1">
                            <i class="fa fa-arrow-up mr-1"></i>12%
                        </span>
                    </div>
                    <p class="text-gray-500 text-sm mt-2">较上次提升</p>
                </div>

                <div class="bg-white rounded-xl shadow-sm p-6 card-hover">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="text-gray-600 font-medium">高频错知识点</h3>
                        <div class="w-10 h-10 rounded-full bg-warning/10 flex items-center justify-center">
                            <i class="fa fa-lightbulb-o text-warning"></i>
                        </div>
                    </div>
                    <div class="flex flex-col">
                        <span class="text-lg font-bold text-gray-800 mb-1">物理 - 圆周运动</span>
                        <span class="text-warning text-sm">8道相关错题</span>
                    </div>
                    <a href="#" class="text-primary text-sm mt-4 inline-flex items-center hover:underline">
                        查看专题 <i class="fa fa-angle-right ml-1"></i>
                    </a>
                </div>
            </div>

            <!-- 筛选与分类 -->
            <div class="mb-8">
                <div class="bg-white rounded-xl shadow-sm p-6">
                    <div class="flex flex-col md:flex-row md:items-center justify-between gap-4">
                        <div class="flex flex-wrap gap-3">
                            <span class="text-gray-600 whitespace-nowrap">按学科筛选：</span>
                            <button class="px-3 py-1 bg-primary text-white text-sm rounded-full">全部</button>
                            <button class="px-3 py-1 bg-gray-100 text-gray-600 text-sm rounded-full hover:bg-gray-200 transition-colors">数学</button>
                            <button class="px-3 py-1 bg-gray-100 text-gray-600 text-sm rounded-full hover:bg-gray-200 transition-colors">语文</button>
                            <button class="px-3 py-1 bg-gray-100 text-gray-600 text-sm rounded-full hover:bg-gray-200 transition-colors">英语</button>
                            <button class="px-3 py-1 bg-gray-100 text-gray-600 text-sm rounded-full hover:bg-gray-200 transition-colors">物理</button>
                            <button class="px-3 py-1 bg-gray-100 text-gray-600 text-sm rounded-full hover:bg-gray-200 transition-colors">化学</button>
                        </div>
                        <div class="flex flex-wrap gap-3">
                            <div class="relative">
                                <select class="pl-4 pr-10 py-2 bg-gray-100 rounded-lg text-gray-700 text-sm appearance-none focus:outline-none focus:ring-2 focus:ring-primary/20">
                                    <option>按错误时间排序（最新在前）</option>
                                    <option>按错误次数排序（多次在前）</option>
                                    <option>按掌握程度排序（未掌握在前）</option>
                                </select>
                                <i class="fa fa-chevron-down absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 pointer-events-none text-sm"></i>
                            </div>
                            <div class="relative">
                                <select class="pl-4 pr-10 py-2 bg-gray-100 rounded-lg text-gray-700 text-sm appearance-none focus:outline-none focus:ring-2 focus:ring-primary/20">
                                    <option>全部掌握程度</option>
                                    <option>未掌握（3次以上错误）</option>
                                    <option>需巩固（2次错误）</option>
                                    <option>已掌握（1次错误）</option>
                                </select>
                                <i class="fa fa-chevron-down absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 pointer-events-none text-sm"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 错题列表 -->
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
                <!-- 错题1 -->
                <div class="bg-white rounded-xl shadow-sm overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex justify-between items-start mb-4">
                            <div class="flex items-center gap-2">
                                <span class="px-2 py-1 bg-danger/10 text-danger text-xs rounded-full">物理</span>
                                <span class="px-2 py-1 bg-warning/10 text-warning text-xs rounded-full">未掌握</span>
                                <span class="px-2 py-1 bg-gray-100 text-gray-500 text-xs rounded-full">3次错误</span>
                            </div>
                            <div class="flex items-center gap-2">
                                <button class="text-gray-400 hover:text-primary transition-colors" title="添加笔记">
                                    <i class="fa fa-sticky-note-o"></i>
                                </button>
                                <button class="text-gray-400 hover:text-danger transition-colors" title="移除错题本">
                                    <i class="fa fa-trash-o"></i>
                                </button>
                            </div>
                        </div>
                        
                        <h3 class="font-medium text-gray-800 mb-4">一个质量为2kg的物体，在光滑水平面上受到与水平方向成30°角的拉力F=10N作用，求物体的加速度大小。</h3>
                        
                        <div class="space-y-4 mb-4">
                            <div>
                                <h4 class="text-sm font-medium text-gray-700 mb-2">我的错误解答：</h4>
                                <div class="p-3 bg-danger/5 border border-danger/20 rounded-lg text-sm text-gray-600">
                                    解：根据F=ma，得a=F/m=10N/2kg=5m/s²
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="text-sm font-medium text-gray-700 mb-2">错误原因：</h4>
                                <div class="flex flex-wrap gap-2">
                                    <span class="px-2 py-1 bg-danger/10 text-danger text-xs rounded-full">未分解力</span>
                                    <span class="px-2 py-1 bg-danger/10 text-danger text-xs rounded-full">公式应用错误</span>
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="text-sm font-medium text-gray-700 mb-2">正确思路：</h4>
                                <p class="text-sm text-gray-600">需将拉力分解为水平分力F_x = F·cos30°，再根据F_x = ma计算加速度，正确结果为a ≈ 4.33 m/s²</p>
                            </div>
                        </div>
                        
                        <div class="flex justify-between items-center pt-3 border-t border-gray-100">
                            <span class="text-gray-400 text-sm">最后错误时间：06-20 15:30</span>
                            <div class="flex items-center gap-3">
                                <a href="#" class="text-gray-600 text-sm border border-gray-200 rounded-lg px-3 py-1 hover:bg-gray-50 transition-colors">
                                    <i class="fa fa-edit mr-1"></i>添加笔记
                                </a>
                                <a href="#" class="text-primary text-sm bg-primary/10 rounded-lg px-3 py-1 hover:bg-primary/20 transition-colors">
                                    <i class="fa fa-repeat mr-1"></i>重新做题
                                </a>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 错题2 -->
                <div class="bg-white rounded-xl shadow-sm overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex justify-between items-start mb-4">
                            <div class="flex items-center gap-2">
                                <span class="px-2 py-1 bg-primary/10 text-primary text-xs rounded-full">数学</span>
                                <span class="px-2 py-1 bg-warning/10 text-warning text-xs rounded-full">需巩固</span>
                                <span class="px-2 py-1 bg-gray-100 text-gray-500 text-xs rounded-full">2次错误</span>
                            </div>
                            <div class="flex items-center gap-2">
                                <button class="text-gray-400 hover:text-primary transition-colors" title="添加笔记">
                                    <i class="fa fa-sticky-note-o"></i>
                                </button>
                                <button class="text-gray-400 hover:text-danger transition-colors" title="移除错题本">
                                    <i class="fa fa-trash-o"></i>
                                </button>
                            </div>
                        </div>
                        
                        <h3 class="font-medium text-gray-800 mb-4">已知函数f(x) = x² - 2x + 3，求其在区间[0, 3]上的最大值和最小值。</h3>
                        
                        <div class="space-y-4 mb-4">
                            <div>
                                <h4 class="text-sm font-medium text-gray-700 mb-2">我的错误解答：</h4>
                                <div class="p-3 bg-danger/5 border border-danger/20 rounded-lg text-sm text-gray-600">
                                    解：f(0)=3，f(3)=6，因此最大值为6，最小值为3
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="text-sm font-medium text-gray-700 mb-2">错误原因：</h4>
                                <div class="flex flex-wrap gap-2">
                                    <span class="px-2 py-1 bg-danger/10 text-danger text-xs rounded-full">未检查极值点</span>
                                    <span class="px-2 py-1 bg-danger/10 text-danger text-xs rounded-full">区间概念不清</span>
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="text-sm font-medium text-gray-700 mb-2">正确思路：</h4>
                                <p class="text-sm text-gray-600">需先求导数找到驻点x=1，再比较f(0)、f(1)、f(3)的值，最小值应为f(1)=2</p>
                            </div>
                        </div>
                        
                        <div class="flex justify-between items-center pt-3 border-t border-gray-100">
                            <span class="text-gray-400 text-sm">最后错误时间：06-18 10:15</span>
                            <div class="flex items-center gap-3">
                                <a href="#" class="text-gray-600 text-sm border border-gray-200 rounded-lg px-3 py-1 hover:bg-gray-50 transition-colors">
                                    <i class="fa fa-edit mr-1"></i>添加笔记
                                </a>
                                <a href="#" class="text-primary text-sm bg-primary/10 rounded-lg px-3 py-1 hover:bg-primary/20 transition-colors">
                                    <i class="fa fa-repeat mr-1"></i>重新做题
                                </a>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 错题3 -->
                <div class="bg-white rounded-xl shadow-sm overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex justify-between items-start mb-4">
                            <div class="flex items-center gap-2">
                                <span class="px-2 py-1 bg-accent/10 text-accent text-xs rounded-full">英语</span>
                                <span class="px-2 py-1 bg-success/10 text-success text-xs rounded-full">已掌握</span>
                                <span class="px-2 py-1 bg-gray-100 text-gray-500 text-xs rounded-full">1次错误</span>
                            </div>
                            <div class="flex items-center gap-2">
                                <button class="text-gray-400 hover:text-primary transition-colors" title="添加笔记">
                                    <i class="fa fa-sticky-note-o"></i>
                                </button>
                                <button class="text-gray-400 hover:text-danger transition-colors" title="移除错题本">
                                    <i class="fa fa-trash-o"></i>
                                </button>
                            </div>
                        </div>
                        
                        <h3 class="font-medium text-gray-800 mb-4">Choose the correct form of the verb: She ______ (study) English for 5 years before she went to London.</h3>
                        
                        <div class="space-y-4 mb-4">
                            <div>
                                <h4 class="text-sm font-medium text-gray-700 mb-2">我的错误解答：</h4>
                                <div class="p-3 bg-danger/5 border border-danger/20 rounded-lg text-sm text-gray-600">
                                    studied
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="text-sm font-medium text-gray-700 mb-2">错误原因：</h4>
                                <div class="flex flex-wrap gap-2">
                                    <span class="px-2 py-1 bg-danger/10 text-danger text-xs rounded-full">时态混淆</span>
                                    <span class="px-2 py-1 bg-danger/10 text-danger text-xs rounded-full">过去完成时未掌握</span>
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="text-sm font-medium text-gray-700 mb-2">正确思路：</h4>
                                <p class="text-sm text-gray-600">表示"过去的过去"发生的动作，需用过去完成时had studied</p>
                            </div>
                        </div>
                        
                        <div class="flex justify-between items-center pt-3 border-t border-gray-100">
                            <span class="text-gray-400 text-sm">最后错误时间：06-15 16:40</span>
                            <div class="flex items-center gap-3">
                                <a href="#" class="text-gray-600 text-sm border border-gray-200 rounded-lg px-3 py-1 hover:bg-gray-50 transition-colors">
                                    <i class="fa fa-edit mr-1"></i>添加笔记
                                </a>
                                <a href="#" class="text-primary text-sm bg-primary/10 rounded-lg px-3 py-1 hover:bg-primary/20 transition-colors">
                                    <i class="fa fa-repeat mr-1"></i>重新做题
                                </a>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 错题4 -->
                <div class="bg-white rounded-xl shadow-sm overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex justify-between items-start mb-4">
                            <div class="flex items-center gap-2">
                                <span class="px-2 py-1 bg-secondary/10 text-secondary text-xs rounded-full">语文</span>
                                <span class="px-2 py-1 bg-warning/10 text-warning text-xs rounded-full">需巩固</span>
                                <span class="px-2 py-1 bg-gray-100 text-gray-500 text-xs rounded-full">2次错误</span>
                            </div>
                            <div class="flex items-center gap-2">
                                <button class="text-gray-400 hover:text-primary transition-colors" title="添加笔记">
                                    <i class="fa fa-sticky-note-o"></i>
                                </button>
                                <button class="text-gray-400 hover:text-danger transition-colors" title="移除错题本">
                                    <i class="fa fa-trash-o"></i>
                                </button>
                            </div>
                        </div>
                        
                        <h3 class="font-medium text-gray-800 mb-4">分析《岳阳楼记》中"先天下之忧而忧，后天下之乐而乐"的思想内涵及其现实意义。</h3>
                        
                        <div class="space-y-4 mb-4">
                            <div>
                                <h4 class="text-sm font-medium text-gray-700 mb-2">我的错误解答：</h4>
                                <div class="p-3 bg-danger/5 border border-danger/20 rounded-lg text-sm text-gray-600">
                                    体现了作者乐观向上的生活态度，告诉我们要积极面对生活中的困难。
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="text-sm font-medium text-gray-700 mb-2">错误原因：</h4>
                                <div class="flex flex-wrap gap-2">
                                    <span class="px-2 py-1 bg-danger/10 text-danger text-xs rounded-full">理解片面</span>
                                    <span class="px-2 py-1 bg-danger/10 text-danger text-xs rounded-full">缺乏文化背景认知</span>
                                </div>
                            </div>
                            
                            <div>
                                <h4 class="text-sm font-medium text-gray-700 mb-2">正确思路：</h4>
                                <p class="text-sm text-gray-600">体现了儒家"以天下为己任"的政治抱负，需结合范仲淹生平及宋代士大夫精神分析，现实意义在于培养公民责任感</p>
                            </div>
                        </div>
                        
                        <div class="flex justify-between items-center pt-3 border-t border-gray-100">
                            <span class="text-gray-400 text-sm">最后错误时间：06-12 09:30</span>
                            <div class="flex items-center gap-3">
                                <a href="#" class="text-gray-600 text-sm border border-gray-200 rounded-lg px-3 py-1 hover:bg-gray-50 transition-colors">
                                    <i class="fa fa-edit mr-1"></i>添加笔记
                                </a>
                                <a href="#" class="text-primary text-sm bg-primary/10 rounded-lg px-3 py-1 hover:bg-primary/20 transition-colors">
                                    <i class="fa fa-repeat mr-1"></i>重新做题
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 分页 -->
            <div class="flex justify-center">
                <div class="flex items-center gap-2">
                    <button class="w-10 h-10 flex items-center justify-center rounded-lg border border-gray-200 text-gray-400 hover:border-primary hover:text-primary transition-colors disabled:opacity-50 disabled:cursor-not-allowed" disabled>
                        <i class="fa fa-chevron-left"></i>
                    </button>
                    <button class="w-10 h-10 flex items-center justify-center rounded-lg bg-primary text-white">1</button>
                    <button class="w-10 h-10 flex items-center justify-center rounded-lg border border-gray-200 hover:border-primary hover:text-primary transition-colors">2</button>
                    <button class="w-10 h-10 flex items-center justify-center rounded-lg border border-gray-200 hover:border-primary hover:text-primary transition-colors">3</button>
                    <span class="text-gray-500">...</span>
                    <button class="w-10 h-10 flex items-center justify-center rounded-lg border border-gray-200 hover:border-primary hover:text-primary transition-colors">5</button>
                    <button class="w-10 h-10 flex items-center justify-center rounded-lg border border-gray-200 text-gray-700 hover:border-primary hover:text-primary transition-colors">
                        <i class="fa fa-chevron-right"></i>
                    </button>
                </div>
            </div>
        </div>
    </main>

    <!-- 页脚 -->
    <footer class="bg-gray-800 text-white py-12 mt-12">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <div class="flex items-center mb-4">
                        <i class="fa fa-graduation-cap text-primary text-2xl mr-2"></i>
                        <h3 class="text-xl font-bold">学知题库</h3>
                    </div>
                    <p class="text-gray-400 mb-4">智能教育资源平台，助力学生高效学习</p>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-weibo"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-wechat"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-qq"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-github"></i>
                        </a>
                    </div>
                </div>
                
                <div>
                    <h4 class="text-lg font-medium mb-4">快速链接</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">首页</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">题库</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">学习路径</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">模拟考试</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">关于我们</a></li>
                    </ul>
                </div>
                
                <div>
                    <h4 class="text-lg font-medium mb-4">帮助中心</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">常见问题</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">使用指南</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">意见反馈</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">联系我们</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">隐私政策</a></li>
                    </ul>
                </div>
                
                <div>
                    <h4 class="text-lg font-medium mb-4">联系我们</h4>
                    <ul class="space-y-2">
                        <li class="flex items-center">
                            <i class="fa fa-map-marker text-primary mr-2"></i>
                            <span class="text-gray-400">北京市海淀区中关村大街1号</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fa fa-phone text-primary mr-2"></i>
                            <span class="text-gray-400">400-123-4567</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fa fa-envelope text-primary mr-2"></i>
                            <span class="text-gray-400">contact@xuezhi.com</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fa fa-clock-o text-primary mr-2"></i>
                            <span class="text-gray-400">周一至周日 9:00-21:00</span>
                        </li>
                    </ul>
                </div>
            </div>
            
            <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
                <p>&copy; 2025 学知题库 版权所有 | 京ICP备12345678号</p>
            </div>
        </div>
    </footer>

    <!-- JavaScript -->
    <script>
        // 导航栏滚动效果
        window.addEventListener('scroll', function() {
            const header = document.querySelector('header');
            if (window.scrollY > 50) {
                header.classList.add('py-2');
                header.classList.remove('py-3');
                header.classList.add('shadow');
            } else {
                header.classList.add('py-3');
                header.classList.remove('py-2');
                header.classList.remove('shadow');
            }
        });

        // 移除错题功能
        document.querySelectorAll('.fa-trash-o').forEach(trash => {
            trash.parentElement.addEventListener('click', function() {
                const card = this.closest('.card-hover');
                // 添加删除动画
                card.classList.add('opacity-0', 'transform', 'scale-95', 'transition-all', 'duration-300');
                
                // 模拟删除操作
                setTimeout(() => {
                    // 实际项目中这里会调用API删除数据
                    card.remove();
                }, 300);
            });
        });

        // 返回顶部按钮
        const backToTopButton = document.createElement('button');
        backToTopButton.id = 'backToTop';
        backToTopButton.className = 'fixed bottom-6 right-6 bg-primary text-white w-12 h-12 rounded-full flex items-center justify-center shadow-lg opacity-0 transition-opacity duration-300 hover:bg-primary/90';
        backToTopButton.innerHTML = '<i class="fa fa-arrow-up"></i>';
        document.body.appendChild(backToTopButton);
        
        window.addEventListener('scroll', function() {
            if (window.scrollY > 300) {
                backToTopButton.classList.add('opacity-100');
                backToTopButton.classList.remove('opacity-0');
            } else {
                backToTopButton.classList.add('opacity-0');
                backToTopButton.classList.remove('opacity-100');
            }
        });
        
        backToTopButton.addEventListener('click', function() {
            window.scrollTo({
                top: 0,
                behavior: 'smooth'
            });
        });
    </script>
</body>
</html>